MQTT消息长度限制

您所在的位置:网站首页 Client Identifier mqqt 长度 MQTT消息长度限制

MQTT消息长度限制

2024-07-11 00:38| 来源: 网络整理| 查看: 265

原文连接: https://stackoverflow.com/questions/34522053/what-is-the-maximum-message-length-for-a-mqtt-broker

内容: 单条消息默认限制大小256MB,可以通过配置修改

It’s not entirely clear what you’re asking here, so I’ll answer both possibilities.

The length of the actual topic string is at most 65536 bytes. This is a limit imposed by the mqtt spec, you can’t change it. It is also worth noting that the topic is encoded with utf-8, so you may have less than 65536 characters available.

The payload of the message is limited to 268,435,456 bytes. Again, this is defined by the spec.

If you are routinely approaching either of these limits you should be thinking about whether what you are doing is sensible.



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3